<h1>Listing midias</h1>

<table>
  <tr>
    <th>Nome</th>
    <th>Ano lancamento</th>
  </tr>

<% @midias.each do |midia| %>
  <tr>
    <td><%=h midia.nome %></td>
    <td><%=h midia.ano_lancamento %></td>
    <td><%= link_to 'Show', midia %></td>
    <td><%= link_to 'Edit', edit_midia_path(midia) %></td>
    <td><%= link_to 'Destroy', midia, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New midia', new_midia_path %>